package com.lingo.mgr.domain.bo;

import com.lingo.common.core.validate.AddGroup;
import com.lingo.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.lingo.common.core.domain.BaseEntity;

/**
 * chatgpt的api-key配置业务对象 gpt_api_key_config
 *
 * @author lingo
 * @date 2023-11-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GptApiKeyConfigBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * api-key
     */
    @NotBlank(message = "api-key不能为空", groups = { AddGroup.class, EditGroup.class })
    private String apiKey;

    /**
     * 上下线状态 1-已上线 2-未上线 3-超额下线
     */
    @NotNull(message = "上下线状态 1-已上线 2-未上线 3-超额下线不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 模型类型：1-GPT3.5 2-GPT4.0
     */
    @NotNull(message = "模型类型：1-GPT3.5 2-GPT4.0不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long llmVersion;


}
